﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Home.Master" Inherits="System.Web.Mvc.ViewPage<PagedList<kysec.RAL.EFToMySql.tb_news>>" MetaKeywords="公司新闻-上海众承精密机床有限公司" MetaDescription="上海众承精密机床有限公司,公司新闻" %>
<%@ Register src="~/Views/News/ditu.ascx" tagname="leftpiece" tagprefix="uc1" %>
<%@ Register src="~/Views/News/ucleft.ascx" tagname="leftpiece" tagprefix="uc2" %>
<%@ Import Namespace="Webdiyer.WebControls.Mvc"%>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	公司新闻-上海众承精密机床有限公司
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="ad_show">
<div class="ad_picture"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="mFlash14" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" 
width="980" height="150"> 
<param name="movie" value="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/flash/3.swf") %>" /> 
<param name="quality" value="high" /> 
<param name="wmode" value="transparent" /> 
<embed id="mFlash3_14" src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/flash/3.swf") %>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" 
type="application/x-shockwave-flash" width="980" height="150"></embed> 
</object> </div></div>
  <div class="main">
    <div id="main_top">
		  <div id="main_top_left">
          <uc2:leftpiece runat="server" ID="leftpiece2" />
		  </div>
		  <div id="main_right">
          <div class="news_p">
              <ul>
              <% int count = 0;
                  if (ViewData["ImgData"] != null)
              {

                  foreach (var item in (System.Collections.Generic.IEnumerable<kysec.Bll.News.newsImgData>)ViewData["ImgData"])
                  {%><%
                      if (item.imgUrl.HasElements)
                      {%>
                        <li>
                            <a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/News/NewsInfo?id=<%=kysec.CR.Common.EncodeByBase64.Encode(item.newsId.ToString()) %>&type=1">
                                <img src="<%=kysec.CR.MyUrl.WebData.WEBURL %><%=item.imgUrl.Element("item").Attribute("url").Value%>" alt="<%=item.title %>" width="140px" height="84px" />
                            </a>
                            <p><a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/News/NewsInfo?id=<%=kysec.CR.Common.EncodeByBase64.Encode(item.newsId.ToString()) %>&type=1"><%=item.title.Length > 10?item.title.Substring(0,10) : item.title %></a></p>
                        </li>                     
                 <%
                     count++;
                      }
                  }
                     if (count < 8) {
                         for (int i = 0; i < 8 - count; i++)
                         {
                     %>
                      <li>
                  <a href="#"><img  src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/new_01.jpg") %>" width="140px" height="84px" /></a>
                  <p><a href="#">sdfsdfsd</a></p>
              </li>
                     <%
}
                     }
                } %>             
              </ul>
          </div>
          <div class="clear"></div>
          <div class="Line"></div>
            <div id="news_content">            
                <div id="page"><%Html.RenderPartial("ucNewForpre", Model); %></div>	
            </div>
        </div>
    </div>
  </div>


</asp:Content>

